home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / c / helloworld.c < prev    next >
C/C++ Source or Header  |  1996-09-12  |  744b  |  33 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: helloworld.c,v 1.2 1996/08/01 17:40:44 digulla Exp $
  4.     $Log: helloworld.c,v $
  5.     Revision 1.2  1996/08/01 17:40:44  digulla
  6.     Added standard header for all files
  7.  
  8.     Desc:
  9.     Lang:
  10. */
  11. #include <exec/libraries.h>
  12. #include <clib/exec_protos.h>
  13. #include <dos/dos.h>
  14. #include <clib/dos_protos.h>
  15.  
  16. struct ExecBase *SysBase;
  17. struct DosLibrary *DOSBase;
  18.  
  19. __AROS_LH0(LONG,entry,struct ExecBase *,sysbase,,)
  20. {
  21.     __AROS_FUNC_INIT
  22.     
  23.     SysBase=sysbase;
  24.     DOSBase=(struct DosLibrary *)OpenLibrary("dos.library",39);
  25.     if(DOSBase!=NULL)
  26.     {
  27.         Write(Output(),"hello, world\n",13);
  28.         CloseLibrary((struct Library *)DOSBase);
  29.     }
  30.     return 0;
  31.     __AROS_FUNC_EXIT
  32. }
  33.